package com.ym.medical.domain.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * ComputerName:LAPTOP-I6GKDIFQ
 * Author:admin
 * Date: 2019-05-16
 * Time: 11:16:18
 * Comment:查询扩展工具类
 */
@Data
@ApiModel("私人服务项")
public class PrivateDoctorRuleParam {

    @ApiModelProperty("私人医生主键")
    @NotNull(message="私人医生主键不能为空!",groups = {Update.class})
    private Long id;

    @ApiModelProperty("规则名称")
    @Size(max = 50 , message = "规则名称长度必须在{min}和{max}之间",groups = {Add.class,Update.class})
    private String pdrName;

    @ApiModelProperty("服务次数")
    @Max(value=2147483647,message="服务次数最大值不能高于{value}",groups = {Add.class,Update.class})
    @Min(value=-2147483648,message="服务次数最小值不能低于{value}",groups = {Add.class,Update.class})
    private Integer pdrCount;

    @ApiModelProperty("服务天数")
    @Max(value=2147483647,message="服务天数最大值不能高于{value}",groups = {Add.class,Update.class})
    @Min(value=-2147483648,message="服务天数最小值不能低于{value}",groups = {Add.class,Update.class})
    private Integer pdrDays;

    @ApiModelProperty("服务类型")
    @Size(max = 20 , message = "服务类型长度必须在{min}和{max}之间",groups = {Add.class,Update.class})
    private String pdrType;

    @ApiModelProperty("是否默认")
    @Max(value=2147483647,message="是否默认最大值不能高于{value}",groups = {Add.class,Update.class})
    @Min(value=-2147483648,message="是否默认最小值不能低于{value}",groups = {Add.class,Update.class})
    private Integer pdrDefault;

    /**
     * 对用规则单价
     */
    @ApiModelProperty("对应规则单价")
    private BigDecimal dspPrice;
    /**
     * 服务项id
     */
    @ApiModelProperty("服务项id")
    private Long docServId;
    /**
     * 价格id
     */
    @ApiModelProperty("价格id")
    private Long dspId;

    public interface Add{}
    public interface  Update{}


}